<?php
// 命名空间文件  命名空间会影响三种元素：类、函数、常量
namespace dome;

// 定义一个常量
const PHP_VERSION = "PHP常量";

const P1 = "P1常量";

const P2 = "P2常量";

// 函数
function time()
{
    echo "demo命名空间的函数";
    echo "<hr>";
}

function time1()
{
    echo "time1函数";
    echo "<hr>";
}


function time2()
{
    echo "time2数";
    echo "<hr>";
}


class test
{
    public function __construct()
    {
        echo "test类初始化";
        echo "<hr>";
    }
}

class test11
{
    public function __construct()
    {
        echo "test11类初始化";
        echo "<hr>";
    }
}

class test22
{
    public function __construct()
    {
        echo "tes22类初始化";
        echo "<hr>";
    }
}

